<template>
  <div>{{ id }}</div>
</template>

<script>
export default {
  name: 'dialogDemo',
  props: ['id'],
  data() {
    return {}
  },
  created() {
    console.log('执行created')
  },
  destroyed() {
    console.log('执行destroyed')
  },
  methods: {
    confirm() {
      this.$emit('confirm')
    },
    cancel() {
      this.$emit('cancel')
    }
  }
}
</script>
